# == Schema Information
#
# Table name: admin_users
#
#  id             :bigint           not null, primary key
#  account_number :string
#  deleted_at     :datetime
#  e_mail         :string
#  name           :string
#  nonce_str      :string
#  password       :string
#  phone          :string
#  created_at     :datetime         not null
#  updated_at     :datetime         not null
#  parent_id      :integer
#
class AdminUser < ApplicationRecord
  # acts_as_paranoid

  has_many :companies
  validates :account_number, uniqueness: {message: "账号已存在" }
end
